package com.niit.musicserver.service;

import com.niit.musicserver.entity.domain.Songlist;

import java.util.List;

/**
 * @Description:
 * @Author: cheng_jianzhen
 * @CreateTime： 2024/1/15 10:47
 */

public interface SonglistService {

    /**
     * Description:根据歌单查询条件查询歌单列表
     * @Author: cheng_jianzhen
     *CreateTime:2024/1/15 10:48
     * aparam: songlist
     * areturn: java.util.List<com.niit.musicserver.entity. domain.Songlist>
     **/
    List<Songlist> getListBySonglist(Songlist songlist);

    /**
     * @Description: 根据id获取歌单详细信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 9:24
     * @param: songlistId
     * @return: com.niit.musicserver.entity.domain.Songlist
     **/
    Songlist getById(Integer songlistId);


    /**
     * @Description: 根据id更新歌单信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 10:19
     * @param: songlist
     * @return: int
     **/
    int updateById(Songlist songlist);


    /**
     * @Description: 新增歌单
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 11:02
     * @param: songlist
     * @return: com.niit.musicserver.common.Result
     **/
    int saveSonglist(Songlist songlist);

    /**
     * @Description: 根据id删除歌单
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/18 8:45
     * @param: songlistId
     * @return: int
     **/
    int deteteById(Integer songlistId);
}
